/* header */
#header{
    width: 100%;
    height: 65px;
    line-height: 65px;
    border-bottom: 1px solid #aec7ec;
    top: 0;
    left: 0;
    z-index: 50;
}
/* logo */
#header .logo{
    width: 230px;
    height: 30px;
}
/* end logo */
/* nav */
#header .nav{
    top: 0;
    left: 50%;
    /* css3平移效果 */
    transform: translateX(-50%);
}
#header .nav li{
    float: left;
    margin: 0 20px;
}
#header .nav li a{
    color: #000;
}
/* 选中效果 */
#header .nav li.active a{
    border-bottom: 2px solid #00bdff;
    padding-bottom: 20px; 
    font-size: 16px;
    color: #00bdff;
}
/* end nav */
/* 登陆注册 */
#header .right-box a{
    padding: 4px 14px;
    border:1px solid #aac6ef;
    border-radius: 25px;
    color: #000;
}
#header .right-box :nth-child(2){
    background: #ed510a;
    border:1px solid #ed510a;
    margin-left: 10px;
    color: #fff;
}
/* end 登陆注册 */
/* end header */

/* api 分类导航 */
#api-nav{
    margin-top: 100px;
}
#api-nav ul li {
    border: 1px solid #ddd;
    padding: 5px 15px;
    border-radius: 8px;
    margin-right: 10px;
    margin-bottom: 10px;
}
#api-nav ul li a{
    color: #000;
}
#api-nav ul li:hover{
    border-color: #00bdff;
}
#api-nav ul li:hover a{
    color: #00bdff;
}
/* end api 分类导航 */

/* 搜索框部分 */
#search{
    line-height: 30px;
    margin-top: 56px;
    margin-bottom: 23px;    
}
#search .search-input{
    width: 230px;
    height: 30px;
    background-color: #f4f4f4;
    border: 0;
    border-radius: 15px;
    text-indent: 20px;
}
#search .search-box{
    position: relative;
}
#search .search-icon{
    position: absolute;
    top: 10px;
    right: 10px;
}
/* end 搜索框 */

/* api 列表 */
.list-item{
    position: relative;
    width:228px ;
    height: 270px;
    padding-top: 58px;
    line-height: 30px;
    border:1px solid #eee ;
    overflow: hidden;
    margin-right: 12px;
    margin-bottom: 15px;
    text-align: center;
    }
    .api-content :nth-child(5n)
    {
    margin-right: 0;
    }
    .special{
    position: absolute;
    left: 10px;
    top: 10px;
    width: 58px;
    height: 22px;
    line-height: 22px;
    font-size: 12px ;
    color: #00bdff;
    background-color: #e5f8ff;;
    }
    .api-name{
    color: #666;
    margin-top: 10px;
    }
    .api-price{
    color: #ff546b;
    }
    /* 申请数据按钮*/
    .apply-data{
    position: absolute;
    /* bottom: 17px; */
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    width:192px ;
    height: 32px;
    line-height: 32px;
    color: #fff;
    background-color: #00bdff;
    transition: all .5s linear;
    opacity: 0;
    }
    .list-item:hover .apply-data{
    bottom: 17px;
    opacity: 1;
    }
    .content{
    transition: all .5s linear; 
    }
    .list-item:hover .content{
    /* css3的写法，先用。 */
    transform: translateY(-10px);
    }
    /* 显示 */
    .on{display:block} 
    /* 隐藏 */
    .off{ display:none}
    /* 价格的颜色 */
    .color-green{
    color:#29c287;
    }
    .color-red{
    color:#ff546b ;
    }
    
/* end api列表 */

/* pagination */
    #pagination{
        margin-top: 60px;
    }
    #pagination ul{
        transform: translateX(30%);
    }
    #pagination ul li{
        width: 20px;
        height: 20px;
        text-align: center;
        line-height: 20px;
        margin-right: 15px;
    }
    #pagination ul a{
        line-height: 20px;
        margin-right: 15px;
    }
    #pagination ul li:hover{
        background: skyblue;
        color: #fff;
        border-radius: 50%;
    }
/* end pagination */

/* footer */
#footer{
    margin-top: 50px;
    margin-bottom: 30px;
}
#footer ul{
    line-height: 25px;
    margin-right: 90px;
}
#footer ul:last-child{
    margin-right: 0;
}
/* end footer */